package com.qingke.java.test0831;

import java.util.ArrayList;

public class Control {
	private static Service service = new Service();

	public int signUpPageControl(String name, String password) {
		return service.signUp(name, password);
	}
	
	public User signInPageControl(String name, String password) {
		return service.signIn(name, password);
	}
	
	public ArrayList<Commodity> allCommodity() {
		return service.allCommodity();
	}
	
	public int buy(User user, int index,int number) {
		return service.buy(user, index, number);
	}
	
	public int changePassword(User user, String newPassword) {
		return service.changePassword(user, newPassword);
	}
	
	
}
